﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UserMaster.Master" AutoEventWireup="true" CodeBehind="SpecialBook.aspx.cs" Inherits="BookManageSys.User.SpecialBook" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
            <h2>推荐产品</h2>
            <asp:GridView ID="gvRecommendedProducts" runat="server" AutoGenerateColumns="False" CssClass="table" OnRowCommand="gvRecommendedProducts_RowCommand">
                <Columns>
                    <asp:BoundField DataField="Productname" HeaderText="产品名称" />
                    <asp:BoundField DataField="Description" HeaderText="产品描述" />
                    <asp:BoundField DataField="Price" HeaderText="价格" DataFormatString="{0:C}" />
                    <asp:BoundField DataField="Stockquantity" HeaderText="库存数量" />
                    <asp:BoundField DataField="Salesquantity" HeaderText="销售数量" />
                    <asp:TemplateField HeaderText="产品图片">
                        <ItemTemplate>
                            <%--<asp:Image ID="imgProduct" runat="server" ImageUrl='<%# Eval("image") %>' Width="100" Height="100" />--%>
                            <asp:ImageButton ID="ImageButton1" runat="server" CommandArgument='<%# Eval("productid") %>' CssClass="card-img-top" ImageUrl='<%# Eval("image") %>' CommandName="详情" Width="100" Height="100"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
</asp:Content>
